package com.feeyo.monitor.mapper;

import org.apache.ibatis.annotations.Mapper;

import com.feeyo.monitor.domain.User;

import java.util.List;
import java.util.Map;

/**
 * 用户类dao
 * @Author <a href="mailto:bliulei@variflight.com">liulei</a>
 * @Description Created by liulei on 2017/5/18 下午5:42.
 */
@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<Map> selectByLogin(Map param);

    List<Map> selectByToken(String token);
    List<Map> selectByUserName(String userName);

    int updateDeleteStatus(String id);

    int updatePassword(Map param);

    List<Map> selectByPage(Map param);

    List<Map> selectByUserAndPage(Map param);


}